package com.stedu.mall.common.bean;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {
    private Integer id;
    private String username;//账号
    @JsonIgnore
    private String password;//密码，MD5加密
    @JsonIgnore
    private String payPassword;//支付密码
    @JsonIgnore
    private String salt;//盐
    private String realname;//真实姓名
    private String sex;
    private String idCard;//身份证号
    private String phone;
    private String email;
    private String regTime;//注册时间
    private BigDecimal money;//余额
    private Integer status;//0:未认证，1：已认证 2:禁用 3:注销
    private List<Addr> addrs;
}
